﻿using System;
using System.Collections.Generic;

namespace Framework.Validation
{
    /// <summary>
    /// Declare interface for <see cref="IValidationResult" /> collection.
    /// </summary>
    public interface IValidationResults : IEnumerable<IValidationResult>
    {
        /// <summary>
        /// Gets the indication of whether the validation was successful.
        /// </summary>
        /// <value><c>true</c> if this instance is valid; otherwise, <c>false</c>.</value>
        bool IsValid
        {
            get;
        }
    }
}
